package com.hundun.hddeal.dao;

import com.hundun.hddeal.entity.TaskOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * 任务大厅接口
 * 任务大厅接口
 * @author 谢
 */
@Component
public interface TaskOrderMapper {

    int deleteByPrimaryKey(Long id);

    int insertSelective(TaskOrder record);

    TaskOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TaskOrder record);

    List<TaskOrder> selectAll(@Param("adType") String adType,@Param("type") String type,@Param("tfPlace")String tfPlace,@Param("time") Date time);

    List<TaskOrder> selectByAdIdAndStatus(@Param("adId") String adId, @Param("adName")String adName, @Param("status")int status, @Param("type")String type);

    int updateOutMoney(@Param("order") String order,@Param("outMoney")Double outMoney);

    TaskOrder getOne(@Param("orderId") String orderId,@Param("type")String type);

    int updateStatus(@Param("order") String order, @Param("status")int status);

    List<TaskOrder> selectNewAll();

    int updateRealityMoney(@Param("orderId") String orderId,@Param("Money")Double Money);

    /**
     * 更新已评价
     * @param orderId
     * @param isPublish
     * @return
     */
    int updatePublish(@Param("orderId")String orderId,@Param("isPublish")Integer isPublish);
}